import { Injectable } from "@angular/core";
import { Observable } from "rxjs";
import { AppApi } from "src/app/app-api";
import { HttpProxyService } from "src/app/shared/service/http-proxy.service";
import { ResponseData, ResponseTypedData } from "src/app/shared/type/http";

@Injectable({
  providedIn: "root"
})
export class LoginService {
  constructor(private httpProxyService: HttpProxyService) {}

  // 添加任务
  login(params: any): Observable<any> {
    return this.httpProxyService.postKVFormProxy<any>(
      AppApi.login,
      params
    );
  }


  savePassword(params: any): Observable<ResponseData> {
    return this.httpProxyService.postKVFormProxy<ResponseData>(AppApi.updatePass, params);
  }
}
